package com.salt.admin.api.utils;

import com.salt.admin.api.feign.client.DictClient;
import com.salt.common.utils.SpringContextHolder;


/**
 * @Description
 * @Author salt
 * @Date 2020/8/12 14:54
 * @Version 1.0
 */
public class DictClientUtils {

    private static DictClient dictClient = SpringContextHolder.getBean(DictClient.class);

    public static String getDictValue(String label, String type, String defaultLabel){
        return dictClient.getDictValue(label, type, defaultLabel);
    }

    public static String getDictLabel(String value, String type, String defaultLabel){
        return dictClient.getDictLabel(value, type, defaultLabel);
    }

}
